package com.qf.mapper;

import com.qf.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/*
杨威
2021/10/13
11:24
*/
public interface StudentMapper {
    List<Student> selectAll();
    Student selectById(Integer stuId);
    List<Student> selectByGenderAndAddress(String gender,String addr);
    List<Student> selectByGenderAndAddressAndGradeId(Map<String,Object> map);
    List<Student> selectByAddressAndGradeId(@Param("addr") String addr,@Param("gid") Integer gid);
    List<Student> selectByStuId(Student stu);
    List<Student> selectByLikeName(String stuName);
    int deleteById(Integer id);
    int updateStu(Student student);
    int insertStu(Student student);
}
